<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:pf="#phpFaces">
	<head>
	<script>
		
		function t(){
			$('form').find('input').each(function(){
				alert(this.name);
				alert(this.value);
			});
			
		}
		
	</script>
	</head>
	<body onload='t()'>
		
		<form name='tab'>
			<input type='text' name='nome' value='nomeNOME'/>
			<input type='text' name='idade' value='idadeIDADE'/>
			<input value="enviar" type="button" pf:onclick="form.executa(#{input[type=text]})"/>
		</form>
		
	</body>
</html>